<template>
  <div id="app">
    <nav class="header">
      <span>logo</span>
      <p>
        <van-button type="default" @click="$router.push({ path: '/userinfo' })"
          >首页</van-button
        >
        <van-button type="default" @click="$router.push({ path: '/login' })"
          >登录</van-button
        >
      </p>
    </nav>

    <router-view />
  </div>
</template>

<script>
export default {
  name: "App",
};
</script>

<style>
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.header {
  width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
}
</style>
